package com.wocai.jrt.orgadmin.flow.service.impl;

import javax.inject.Inject;
import javax.inject.Named;

import com.wocai.jrt.orgadmin.flow.dao.FlowDao;
import com.wocai.jrt.orgadmin.flow.model.Flow;
import com.wocai.jrt.orgadmin.flow.model.FlowBean;
import com.wocai.jrt.orgadmin.flow.service.spi.FlowService;

import com.vteba.service.generic.impl.MyBatisServiceImpl;
import com.vteba.tx.jdbc.mybatis.spi.BaseDao;

/**
 * 流程相关的service业务实现。
 * @author yinlei
 * @date 2016-3-18 15:36:24
 */
@Named
public class FlowServiceImpl extends MyBatisServiceImpl<Flow, FlowBean, String> implements FlowService {
	// 添加了方法后，记得改为private
	protected FlowDao flowDao;
	
	@Override
	@Inject
	public void setBaseDao(BaseDao<Flow, FlowBean, String> flowDao) {
		this.baseDao = flowDao;
		this.flowDao = (FlowDao) flowDao;
	}
}
